package org.soderiakelvy.model.services.testCase;


import java.util.List;
import junit.framework.Assert;
import org.junit.Test;
import org.soderiakelvy.model.domain.RolVO;
import org.soderiakelvy.model.service.LoginServicio;
import org.soderiakelvy.model.service.imp.LoginServicioImpl;


public class TestLoginService {
	//@BeforeClass

	
	@Test
	public void testLoginService(){
	
		LoginServicio ls = new LoginServicioImpl();

		
		//----------- TEST  GETALL roles------------------------
				List<RolVO> roles = ls.getAllRoles();
				Assert.assertEquals(roles.size(), 2);
				for(RolVO rol : roles){
					System.out.println(rol);
				}
				System.out.println("TEST GETALL roles OK");
				//---------------------------------------------------------
		
		//----------------------------------------------------------------
		
	}
}
